
aczjbx_articledetail()
function aczjbx_articledetail(){
$.ajaxSetup({async:false})
$.getJSON("/articlelist/index.json",(data)=>{
    var indexlist=data["data"]
    document.getElementById("archiveCount").innerText=indexlist.length
    document.getElementById("archCount").innerText=indexlist.length
    console.log(indexlist)
    for (let _i = 0; _i < indexlist.length; _i++) {
      console.log(indexlist[_i].hash)
        const articalorigin = indexlist[_i];
        $.getJSON(articalorigin["origin"],(data)=>{
                document.getElementById("collapse_").insertAdjacentHTML("beforeend",`
                <article itemscope itemtype="http://schema.org/Article">
                <header class="post-header">
            
                  <div class="post-meta">
                    <time itemprop="dateCreated"
                          datetime="${data["data"].datePublishedtime}"
                          content="${data["data"].datePublished}">
                          ${data["data"].datePublished.substr(5)}
                    </time>
                  </div>
            
                  <h3 class="post-title">
                      <a class="post-title-link" href="/articledetail/?${data["data"].hash}" itemprop="url">
                        <span itemprop="name">${data["data"].headline}</span>
                      </a>
                  </h3>
            
                </header>
              </article>
                `)

        })
    }
})
$.ajaxSetup({async:true})
}